﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApp.Controls
{
    public partial class DateTimeContorl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
      //      Calendar.Visible = false;
        }

        protected void Calendar_SelectionChanged(object sender, EventArgs e)
        {
            CalendarTextBox.Text = Calendar.SelectedDate.ToShortDateString().ToString();
          //  Calendar.Attributes.
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Calendar.Visible = true;
        }
    }
}